<?php

/**
 * @author gbfun <gbfun@163.com>  2017-09-16 20:03
 * http://www.wuweiyou.com
 */

class background_model_container extends wwy_model_container
{            
    protected static $_model_background_good_category = null;
    public static function get_model_background_good_category()
    {
        if(self::$_model_background_good_category === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/good_category.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/good_category.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/good_category.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/db_table/good_category.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/good_category.php';
    
            self::$_model_background_good_category = db_model_background_good_category::get_instance();
        }
    
        return self::$_model_background_good_category;
    }
    
    protected static $_model_background_good = null;
    public static function get_model_background_good()
    {
        if(self::$_model_background_good === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/good.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/db_table/good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/good.php';
    
            self::$_model_background_good = db_model_background_good::get_instance();
        }
    
        return self::$_model_background_good;
    }
    
    protected static $_model_background_member = null;
    public static function get_model_background_member()
    {
        if(self::$_model_background_member === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/member.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/member.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/member.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/db_table/member.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/member.php';
    
            self::$_model_background_member = db_model_background_member::get_instance();
        }
    
        return self::$_model_background_member;
    }
    
    protected static $_model_background_order = null;
    public static function get_model_background_order()
    {
        if(self::$_model_background_order === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/order.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/order.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/order.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/db_table/order.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/order.php';
    
            self::$_model_background_order = db_model_background_order::get_instance();
        }
    
        return self::$_model_background_order;
    }
    
    protected static $_model_background_order_good = null;
    public static function get_model_background_order_good()
    {
        if(self::$_model_background_order_good === null){
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/formatter/order_good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/db_table/order_good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/common/model/order_good.php';
    
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/db_table/order_good.php';
            require_once PROJECT_ROOT_PATH . '/no_public/module/background/common/model/order_good.php';
    
            self::$_model_background_order_good = db_model_background_order_good::get_instance();
        }
    
        return self::$_model_background_order_good;
    }
}
